import request from "@/utils/request";

// 查询【请填写功能名称】列表
export function listYg(query) {
  return request({
    url: "/system/yg/list",
    method: "get",
    params: query,
  });
}

export function listData(query) {
  return request({
    url: "/system/yg/listData",
    method: "get",
    params: query,
  });
}

export function listJl() {
  return request({
    url: "/system/yg/list/jl",
    method: "get",
  });
}
export function getOneYg(query) {
  return request({
    url: "/system/yg/getOne/one",
    method: "get",
    params: query,
  });
}

// 查询【请填写功能名称】详细
export function getYg(ygId) {
  return request({
    url: "/system/yg/" + ygId,
    method: "get",
  });
}

// 新增【请填写功能名称】
export function addYg(data) {
  return request({
    url: "/system/yg",
    method: "post",
    data: data,
  });
}

// 修改【请填写功能名称】
export function updateYg(data) {
  return request({
    url: "/system/yg",
    method: "put",
    data: data,
  });
}

// 删除【请填写功能名称】
export function delYg(ygId) {
  return request({
    url: "/system/yg/" + ygId,
    method: "delete",
  });
}
